<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的足迹</title>
<link href="{{static_url('css/grzj.css')}}" rel=stylesheet>

</head>
<body class="vbody">

 <div class="header">
    <div class="main">
      <a href="" class="logo"><img src="{{static_url('image/logo.jpg')}}" width="446" height="48"></a>
    <div class="tel">
     <div class="telnum">联系我们：<span>888-888-88888</span></div>
     <div class="telphone"><img src="{{static_url('image/telphone.jpg')}}" width="57" height="57" /></div>
    </div>
  </div>
</div>


<div class="menu">
  <ul>
        <li><a href="/index">首页</a></li>
  <!--     <li><a href="">关于我们</a></li> -->
      <!-- <li><a href="/third_rent">第三方租房</a></li> -->
      <li><a href="/rent">寻找房源</a></li>
      <li><a href="/release">发布房源</a></li>
      <li><a href="/advice">投诉建议</a></li>
      <li><a href="/user">个人中心</a></li>
     
  </ul>
</div>

    
    <div id="txbj" class="nav" style="background:url({{static_url('image/11.jpg')}});
	width:1150px;height:200px;">
	<div id="" class="quan">
	<a href=""><img src="{{static_url('image/touxiang.jpg')}}" width="" height="" border="0" alt="">	</a>
	
	<a href="" class="wangming">那年初夏</a>
	<div id="" class="">
		
    </div>
    </div>
	</div>



<div id="" class="main">
	<div id="" class="left">
		<ol>
			<li ><a href="/user">个人中心</a></li>
			<li class="shouye"><a href="/user/history">我的足迹</a></li>
            <li ><a href="/user/comment">我的收藏</a></li>
            <li><a href="/user/manage">个人管理</a></li>
		</ol>
	</div>


	<div id="" class="right">
	    <div id="" class="dongtai">我的足迹 </div>
        <div id="" class="">
            <input type="hidden" class="user" value="{{user}}">
            {%for i in result%}
                <a href="/index">{{i[0]}}</a>
                {{i[1]}}
                <hr>
            {%end%}
        </div>
        <button class="clear_h">清空</button>
    </div>
</div>

 <div class="bootTxt">
</div>
</body>
<script type="text/javascript" src="{{static_url('js/jquery-1.8.3.min.js')}}"></script>
<script type="text/javascript">
    $(function () {
        $('.clear_h').click(function () {
            $.ajax({
               type: 'POST',
               url: '/user/history',
               data: {},
               dataType: 'json',
               success: function (data) {
                    if(data.result == 'ok'){
                        alert('已清空足迹');
                        window.location.href="/user/history";
                    }else{
                        alert('清空失败，足迹为空');
                    }
               },
               error: function () {
                    alert('网络中断')
               }
            });
        });
    });
</script>
</html>